/**
 * 预加载面板
 * @author chenwei
 * @date 2016/07/14
 */
class PreloadPanel extends BasePanel{
    /**进度文本*/
    private percentLab:eui.Label;
	/**进度条*/
//    private loadProgress:eui.ProgressBar;
    /*加载动画*/
    private mc:egret.MovieClip;
    /**转圈 */
    private mcCir:egret.MovieClip;
    public preGro:eui.Group;
    public gameGro:eui.Group;
	
    public constructor() {
    	super();
    	this.skinName = "PreloadPanelSkin";
	}

    protected onEnable() {
        this.setProgress(0);
    }

    protected onRemove() {
        this.setProgress(0);
    }   
    
    /**
     * 设置加载进度
     * @value 进度 0-100
     */
    public setProgress(value:number){
        if (this.percentLab) {
            this.percentLab.text = value + "%";
        }
//        this.loadProgress.value = value;
    }

}
